package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.Leave;

/**
 * leaveMapper接口
 * 
 * @author ruoyi
 * @date 2023-10-11
 */
public interface LeaveMapper 
{
    /**
     * 查询leave
     * 
     * @param id leave主键
     * @return leave
     */
    public Leave selectLeaveById(Long id);

    /**
     * 查询leave列表
     * 
     * @param leave leave
     * @return leave集合
     */
    public List<Leave> selectLeaveList(Leave leave);

    /**
     * 新增leave
     * 
     * @param leave leave
     * @return 结果
     */
    public int insertLeave(Leave leave);

    /**
     * 修改leave
     * 
     * @param leave leave
     * @return 结果
     */
    public int updateLeave(Leave leave);

    /**
     * 删除leave
     * 
     * @param id leave主键
     * @return 结果
     */
    public int deleteLeaveById(Long id);

    /**
     * 批量删除leave
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteLeaveByIds(Long[] ids);
}
